module.exports = {
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "http://www.msmile.top:3500",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
      "/map": {
        target: "https://restapi.amap.com/v3",
        changeOrigin: true,
        pathRewrite: {
          "^/map": "",
        },
      },
    },
  },
  configureWebpack(config) {
    // ...

    config.externals = {
      AMap: "AMap", // 高德地图配置
    };
  },
};
